package com.eastfair.common.config;

import io.seata.tm.api.FailureHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static io.seata.common.Constants.BEAN_NAME_FAILURE_HANDLER;

@Configuration
public class SeataConfig {

//    //失败处理类
//    @Bean(BEAN_NAME_FAILURE_HANDLER)
//    @ConditionalOnMissingBean(FailureHandler.class)
//    public FailureHandler failureHandler() {
//        return new SeataFailureHandler();
//    }


//    @Bean
//    public GlobalTransactionScanner globalTransactionScanner(){
//        /**
//         * 以下参数为是无效参数,具体可以查看该类源码
//         */
//        return new GlobalTransactionScanner("project-core","ef_dev_tx_group");
//    }
}
